TORTOISE_ORM = {
    'connections': {
        'default': {
            # 'engine': 'tortoise.backends.asyncpg',  PostgreSQL
            'engine': 'tortoise.backends.mysql',  # MySQL or Mariadb
            'credentials': {
                'host': '127.0.0.1',
                'port': '3306',
                'user': 'root',
                'password': '123456',
                'database': 'nove',
                'minsize': 1,
                'maxsize': 5,
                'charset': 'utf8mb4',
                "echo": True
            }
        },
    },
    'apps': {
        'models': {
            'models': ["models.m"],
            'default_connection': 'default',
        }
    },
    'use_tz': False,
    'timezone': 'Asia/Shanghai'
}
# 在配置文件中设置 dingtalk 参数
DINGTALK_CLIENT_ID = "ding8v3cwlnok7c913a4"
DINGTALK_CLIENT_SECRET = "cV72r4Fp6YkC6Fh9EMYv1Qe-XB3cqhK4yR3ppzNxLyUQrVLUOa8wtRPuGYhuMweD"

# settings.py
import os


class Settings:
    # ... 其他配置 ...

    IMAGE_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), "tool", "img")


#支付宝
APP_ID =  ""

FRONTEND_BASE_URL = "http://127.0.0.1:5176"
FRONTEND_REDIRECT_URL = "http://127.0.0.1:5176/#/"
DINGTALK_REDIRECT_URI = "http://127.0.0.1:8000/user/dingding"